﻿using System.Collections;
using System.Collections.Generic;
using Test.Entities;

namespace Test.Modules.Accounts.ClientBilling.Models
{
	public class AccountModuleListViewModel : IEnumerable<WebsiteModule>
	{
		private readonly List<WebsiteModule> _modules;

		public AccountModuleListViewModel(IEnumerable<WebsiteModule> modules) : base()
		{
			_modules = new List<WebsiteModule>(modules);
		}

		public IEnumerator<WebsiteModule> GetEnumerator()
		{
			return _modules.GetEnumerator();
		}

		IEnumerator IEnumerable.GetEnumerator()
		{
			return GetEnumerator();
		}
	}
}